package com.songcha.module_mine.api

import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response

class MineInterceptor:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val original:Request=chain.request()
        val requestBuilder: Request.Builder=original.newBuilder()
        //TODO test login token
        //requestBuilder.addHeader("token","eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDQwMDgxODUsInVzZXJJZCI6IjUifQ.f5BTJe0LIgSgdilWlnsjAXnStfInqcbJr_sT2wTzbOI")
        val request=requestBuilder.build()
        return chain.proceed(request)
    }
}